<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      /* 支持上下渐变 */
      .gradient-text-one {
        background-image: -webkit-linear-gradient(top, yellow, deeppink);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
    </style>
  </head>
  <body>
    <div class="gradient-text-one">文字颜色渐变</div>
  </body>
</html>
